# 1. 创建字典
a = {}
print(type(a))  # <class 'dict'>
b = dict()
print(type(b))  # <class 'dict'>

# 2. 创建字典的同时设置初始值.
a = {'id': 1, 'name': 'zhangsan'}

a = {
    'id': 1,
    'name': 'zhangsan',
}
print(a)    # 输出 {'id': 1, 'name': 'zhangsan'}